<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Language" content="zh-CN">
<meta name="Keywords" content="SuperSlide,SuperSlide switchLoad,图片切换加载">
<meta name="Description" content="SuperSlide,SuperSlide switchLoad,图片切换加载">
<title>SuperSlide - switchLoad 图片切换加载</title>
<script type="text/javascript" src="../../jquery1.42.min.js"></script><script type="text/javascript" src="../../jquery.SuperSlide.2.1.js"></script>

<!-- 以下为代码着色插件引用 -->
<script type="text/javascript" src="../../syntaxhighlighter/scripts/shCore.js"></script>
<script type="text/javascript" src="../../syntaxhighlighter/scripts/shBrushXml.js"></script>
<script type="text/javascript" src="../../syntaxhighlighter/scripts/shBrushCss.js"></script>
<script type="text/javascript" src="../../syntaxhighlighter/scripts/shBrushJScript.js"></script>
<link type="text/css" rel="stylesheet" href="../../syntaxhighlighter/styles/shCoreRDark.css"/>
<script type="text/javascript">SyntaxHighlighter.all();</script>
<style type="text/css">

	/* css 重置 */
	*{margin:0; padding:0; list-style:none; }
	body{ color:#333;font:12px/20px Arial,"Microsoft YaHei","宋体",sans-serif; text-align:center;  }
	img{ border:0;  }
	a{ text-decoration:none; color:#333;  }
	a:hover{ color:#1974A1;  }

	/* 顶部导航条 */
	#header{ height:32px; line-height:30px; color:#fff; text-align:left; padding:0 10px; overflow:hidden; background: #333;}
	#header a{ color:#fff;  }
	#header #logo{ display:inline-block; *display:inline; zoom:1; font-size:14px; margin-right:5px;  }
	#header .nav{ float:right; }
	#header .nav a{ padding:0 10px;  }
	#header .nav a.imp{ color:#ff0;  }

	#content{ margin:0 auto; padding:30px;  position:relative; text-align:left;  }
	#demoContent{ width:100%; margin-top:10px;  }

	.usePageDl{ width:1000px;  }
	.usePageDl dt h2{ font:normal 22px/150% "Microsoft YaHei"; _font-weight:bold; color:#176D97;  }
	.usePageDl dt p{ padding:5px 0 10px 33px;  }
	.usePageDl dd{ margin-bottom:50px; padding-left:33px;  }
	.syntaxhighlighter table td.code{ padding:10px 0 !important;  }
	.syntaxhighlighter{ margin:0;  }
	.imp{ color:#c00;  }


	/* 本例子css */
	.switchLoad{ width:710px; border:2px solid #ccc; text-align:left; background:#fff;   }
	.switchLoad .hd{ height:36px; line-height:36px; background:#f4f4f4; padding:0 20px; border-bottom:1px solid #ddd;  position:relative;  }
	.switchLoad .hd ul{ float:left; position:absolute; left:20px; top:-1px; height:36px;   }
	.switchLoad .hd ul li{ float:left; padding:0 15px; cursor:pointer;  }
	.switchLoad .hd ul li.on{ height:36px;  background:#fff; border:1px solid #ddd; border-bottom:2px solid #fff; }
	.switchLoad .bd ul{ padding:15px; overflow:hidden;  zoom:1;  }
	.switchLoad .bd li{ width:100px; margin: 0 6px 10px 6px; float:left; display:inline; text-align:center;  }
	.switchLoad .bd li img{ width:100px; height:140px; display:block; background:url(images/loading.gif) center center no-repeat; }
	.switchLoad .bd li h6{ font-size:12px; font-style:normal; font-weight:normal; padding-top:5px;  }
	.switchLoad .bd li p{ color:#666;  }

</style>

</head>
<body>
<!-- header S -->
<div id="header">
	<span class="nav">
		<a href="../../index.html">返回首页</a>
	</span>

	<div class="title">
			<h1 tite="SuperSlide" id="logo">SuperSlide</h1><em></em><span class="author"> -- 大话主席</span>
	</div>
</div>
<!-- header E -->

<!-- content S -->
<div id="content">
		<dl class="usePageDl">
		<dt><h2>1、前言</h2>
			<p>为了加快网站加载，特别是对于很多图片的网站，我们往往只需要显示浏览范围内的图片，而当用户切换到其它选项时再加载当前选项的图片，switchLoad就是为了解决此类问题的。<br/>
			<span class="imp">必须结合后台程序使用，否则无实际意义！</span>
			</p>
		</dt>
		<dd>
			<img src="images/switchLoad.png" />
		</dd>

		<dt><h2>2、实例：图片切换加载 [ 可以清除缓存多次测试 ] </h2>
				<p></p>
		</dt>
		<dd>

			<div class="switchLoad">
				<div class="hd">
					<ul>
						<li>全部</li>
						<li>爱情</li>
						<li>动作</li>
						<li>喜剧</li>
					</ul>
				</div>
				<div class="bd">
						<ul>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/1.1.jpg" /></a>
								<h6>《一代宗师》特辑</h6><p>幕后制作特辑</p>
							</li>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/1.2.jpg" /></a>
								<h6>一吻巴黎</h6><p>不老天使塔图</p>
							</li>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/1.3.jpg" /></a>
								<h6>王家卫经典台词</h6><p>经典台词集锦</p>
							</li>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/1.4.jpg" /></a>
								<h6>旺角卡门</h6><p>王家卫处女作</p>
							</li>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/1.5.jpg" /></a>
								<h6>叶问2</h6><p>甄子丹宗师传奇</p>
							</li>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/1.6.jpg" /></a>
								<h6>太空一号</h6><p>太空版飓风营救</p>
							</li>
						</ul><!-- ul E -->

						<ul>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/2.1.jpg" /></a>
								<h6>《一代宗师》特辑</h6><p>幕后制作特辑</p>
							</li>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/2.2.jpg" /></a>
								<h6>一吻巴黎</h6><p>不老天使塔图</p>
							</li>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/2.3.jpg" /></a>
								<h6>王家卫经典台词</h6><p>经典台词集锦</p>
							</li>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/2.4.jpg" /></a>
								<h6>旺角卡门</h6><p>王家卫处女作</p>
							</li>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/2.5.jpg" /></a>
								<h6>叶问2</h6><p>甄子丹宗师传奇</p>
							</li>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/2.6.jpg" /></a>
								<h6>太空一号</h6><p>太空版飓风营救</p>
							</li>
						</ul><!-- ul E -->

						<ul>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/3.1.jpg" /></a>
								<h6>《一代宗师》特辑</h6><p>幕后制作特辑</p>
							</li>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/3.2.jpg" /></a>
								<h6>一吻巴黎</h6><p>不老天使塔图</p>
							</li>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/3.3.jpg" /></a>
								<h6>王家卫经典台词</h6><p>经典台词集锦</p>
							</li>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/3.4.jpg" /></a>
								<h6>旺角卡门</h6><p>王家卫处女作</p>
							</li>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/3.5.jpg" /></a>
								<h6>叶问2</h6><p>甄子丹宗师传奇</p>
							</li>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/3.6.jpg" /></a>
								<h6>太空一号</h6><p>太空版飓风营救</p>
							</li>
						</ul><!-- ul E -->

						<ul>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/4.1.jpg" /></a>
								<h6>《一代宗师》特辑</h6><p>幕后制作特辑</p>
							</li>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/4.2.jpg" /></a>
								<h6>一吻巴黎</h6><p>不老天使塔图</p>
							</li>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/4.3.jpg" /></a>
								<h6>王家卫经典台词</h6><p>经典台词集锦</p>
							</li>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/4.4.jpg" /></a>
								<h6>旺角卡门</h6><p>王家卫处女作</p>
							</li>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/4.5.jpg" /></a>
								<h6>叶问2</h6><p>甄子丹宗师传奇</p>
							</li>
							<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/4.6.jpg" /></a>
								<h6>太空一号</h6><p>太空版飓风营救</p>
							</li>
						</ul><!-- ul E -->
				</div>
			</div>

			<script type="text/javascript">

				jQuery(".switchLoad").slide({ trigger:"click",switchLoad:"_src",delayTime:0 });

			</script>


			<p>&nbsp;</p>
			<p class="imp">主要html代码：</p>
			<p>
				<pre class="brush: html;">

						<div id="switchLoad">
							<div class="hd">
								<ul>
									<li>全部</li>
									<li>爱情</li>
									<li>动作</li>
									<li>喜剧</li>
								</ul>
							</div>
							<div class="bd">
									<ul>
										<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/1.1.jpg" /></a>
											<h6>《一代宗师》特辑</h6><p>幕后制作特辑</p>
										</li>
										......
									</ul><!-- ul E -->

									<ul>
										<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/2.1.jpg" /></a>
											<h6>《一代宗师》特辑</h6><p>幕后制作特辑</p>
										</li>
										......
									</ul><!-- ul E -->

									<ul>
										<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/3.1.jpg" /></a>
											<h6>《一代宗师》特辑</h6><p>幕后制作特辑</p>
										</li>
										......
									</ul><!-- ul E -->

									<ul>
										<li><a href="http://www.SuperSlide2.com"><img src="images/blank.png" _src="images/4.1.jpg" /></a>
											<h6>《一代宗师》特辑</h6><p>幕后制作特辑</p>
										</li>
										......
									</ul><!-- ul E -->
							</div>
						</div>

				</pre>
			</p>
			<p>
				<pre class="brush:js;">
					jQuery("#switchLoad").slide({ trigger:"click",switchLoad:"_src",delayTime:0 });
				</pre>
			</p>

		</dd>


		<dt><h2>3、不单书签切换，其它焦点图、图片滚动等都支持switchLoad</h2></dt>
		</dl>
</div>


<!-- content E -->
<div id="footer">Copyright ©2011-2013 大话主席  <a href="http://www.SuperSlide2.com">www.SuperSlide2.com</a></div>
</body>
</html>
<script type="text/javascript">
//百度统计代码
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fa630f96b6a9dd549675d26373853f7f1' type='text/javascript'%3E%3C/script%3E"));
</script>
